package com.cy.login;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan("com.cy.*.*")
@ComponentScan("com.cy.login.config.*")
@MapperScan("com.cy.login.mapper")
@ServletComponentScan   //扫描过滤器
@SpringBootApplication
@EnableTransactionManagement
public class LoginApplication {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        SpringApplication.run(LoginApplication.class, args);
    }
}
